﻿using In66.Net.EventBus.Cap;

namespace Ord.Api.Models.Events
{
    public class OrderCreatedModel
    {
        public long OrderId { get; set; }

        public IEnumerable<OrderItem> Products { get; set; } = new List<OrderItem>();
    }
    public class OrderItem
    {
        public long ProductId { get; set; }
        public int Qty { get; set; }
    }
    /// <summary>
    /// 订单创建事件
    /// </summary>
    [Serializable]
    public class OrderCreatedEvent : Event<OrderCreatedModel>
    {
        public OrderCreatedEvent()
        {
        }
        public OrderCreatedEvent(string source, OrderCreatedModel eventData) : base(source, eventData)
        {

        }

    }
}
